package jmu.net.chpt0304;

  public class Person {
		private String name;
		private boolean gender;
		private int age;
		private int phone;
		private String address;
		private String email;
		
		
       
  
      public int getPhone() {
			return phone;
		}

		public void setPhone(int phone) {
			this.phone = phone;
		}

		public String getAddress() {
			return address;
		}


		public void setAddress(String address) {
			this.address = address;
		}


		public String getEmail() {
			return email;
		}


		public void setEmail(String email) {
			this.email = email;
		}


		public String getName() {
			return name;
		}


	public Person() {
		super();
		  this.age=1;
		  this.gender=true;
		  this.name="";
		  this.address=address;
		  this.phone=phone;
		  this.email=email;
	  }
      
	

  
	public Person(String name, boolean gender, int age) {
		
		this.name = name;
		this.gender = gender;
		this.age = age;
	}




	public String getame() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public boolean isGender() {
		return gender;
	}

	public void setGender(boolean gender) {
		this.gender = gender;
	}

	public int getAge() {
		return age;
	}

	public void setAge(int age) {
		this.age = age;
	}
 

	
	


	@Override
	public String toString() {
		return "Person [name=" + name + ", gender=" + gender + ", age=" + age + ", phone=" + phone + ", address="
				+ address + ", email=" + email + "]";
	}

	public static void main(String[] args) {
		Person p = new Person();
		Person p1 = new Person();
		Person p2 = new Person();
		Person p3 = new Person();
		p.age = 23;
		p1.age = 20;
		p2.age = 22;
		p3.age = 18;
		System.out.println(p.toString());
		System.out.println(p1.toString());
		System.out.println(p2.toString());
		System.out.println(p3.toString());
	    
		// TODO Auto-generated method stub

	}

} 
